package com.foshanshop.ejb3.dao.impl;

import java.util.List;

import org.hibernate.Query;

import com.b2besoft.po.TestOracleDs;
import com.dhgate.common.dao.impl.HibernateDAOImpl;
import com.foshanshop.ejb3.dao.OracleDAO;

public class OracleDAOImpl extends HibernateDAOImpl implements OracleDAO
{

    public int getTestOracleDs() {
        TestOracleDs po = null;
        String sql = "from TestOracleDs a";
        Query q = session.createQuery(sql);
        List reList=q.list();
        return reList.size();
        
//        if(reList!=null && reList.size()>0){
//              po =(TestOracleDs)reList.get(0);
//        }
//        if(po==null)
//            return null;
//         
//        return po;
    }

    public void save(TestOracleDs user) {
        session.save(user);
    }
    
    
}